package com.learn.dataandfile.media_files_from_multiple_folder

import android.content.Context
import android.content.Intent
import android.view.LayoutInflater
import com.exercise.struct.base.BaseActivity
import com.learn.dataandfile.databinding.ActivityMediaFilesFromMultipleFolderBinding

class MediaFilesFromMultipleFolderActivity :
    BaseActivity<MediaFilesViewModel, ActivityMediaFilesFromMultipleFolderBinding>() {
    override val bindingInflater: (LayoutInflater) -> ActivityMediaFilesFromMultipleFolderBinding
        get() = ActivityMediaFilesFromMultipleFolderBinding::inflate
    override val modelClass: Class<MediaFilesViewModel>
        get() = MediaFilesViewModel::class.java

    override fun initData() {
        mViewModel.loadMediaFilesFromMultipleFolder(this)
    }

    override fun initView() {
    }

    companion object {
        fun start(context: Context) {
            Intent(context, MediaFilesFromMultipleFolderActivity::class.java)
                .also {
                    context.startActivity(it)
                }
        }
    }
}